{% macro pager(uri, prev_page, next_page, width='span12') -%}
<div class="row-fluid">
  <div class="{{ width }}">
    <ul class="pager">
      {% if prev_page %}
      <li class="previous"><a href="{{ uri }}?page={{ prev_page }}">Previous</a></li>
      {% else %}
      <li class="previous disabled"><a href="#">Previous</a></li>
      {% endif %}
      {% if next_page %}
      <li class="next"><a href="{{ uri }}?page={{ next_page }}">Next</a></li>
      {% else %}
      <li class="next disabled"><a href="#">Next</a></li>
      {% endif %}
    </ul>
  </div>
</div>
{%- endmacro %}

{% macro modal_confirm() -%}
<div id="confirm" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-body">
        <h4 class="modal-title">Are you sure?</h4>
      </div>
      <div class="modal-footer">
        <button type="button" data-dismiss="modal" class="btn btn-default">Cancel</button>
        <button id="delete-button" type="button" class="btn btn-danger">Delete</button>
      </div>
    </div>
  </div>
</div>
{%- endmacro %}
